<!DOCTYPE html>
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:replace="baseHaed::common_header(~{::title},~{})">
    <title>用户登录界面</title>
</head>
<body>
<div class="container">
    <div class="col-11 col-sm-8 col-md-6 col-xl-3 mx-auto">
        <form th:action="@{/userLogin}" th:method="post">
            <h3 class="h3 my-3 text-center fw-normal">请登录</h3>
            <div th:if="${param.error}" class="alert alert-danger" role="alert">
                用户名或密码错误，请重新登录！
            </div>
            <input type="text" name="name" class="form-control mb-2" placeholder="用户名" required autofocus
                   aria-label="用户名"/>
            <input type="password" name="pwd" class="form-control mb-3" placeholder="密码" required aria-label="密码"/>
            <button type="submit" class="btn btn-primary w-100 mb-3">登录</button>
            <div class="form-check">
                <input class="form-check-input" type="checkbox" name="remembered" id="remembered" />
                <label class="form-check-label" for="remembered">记住我</label>
            </div>
        </form>
    </div>
</div>
</body>
</html>